const mongoose = require("mongoose");

mongoose.connect("mongodb://localhost/maoyan", {
    useNewUrlParser: true
});

module.exports = {
    User: require("./User"),
    Movie: require("./Movie"),
    Cinema: require("./Cinema"),
    MovieAndCinema: require("./MovieAndCinema"),
    Article: require("./Article"),
    ObjectId: mongoose.Types.ObjectId
}